import java.io.FileInputStream;
import java.util.Properties;
import java.util.Set;

public class HandlerProperties {
	public static Properties loadProperties(String origem){
		FileInputStream arquivoConfig = null;

	        Properties configSistema = new Properties();

	        try {
        	    arquivoConfig = new FileInputStream(origem);
	
        	    configSistema.load(arquivoConfig);
        	}
	        catch(Exception e) {
	            e.printStackTrace();
	        }

	        finally {
	            try {
        	        arquivoConfig.close();
	            }
	            catch(Exception e) {
	                e.printStackTrace();
        	    }
	        }

	        return configSistema;
	}

}